package com.wutianyi.module.services.impl;

import java.util.List;

import com.wutianyi.module.commons.PropertyGroup;
import com.wutianyi.module.dao.ItemDao;
import com.wutianyi.module.dao.PropertyGroupDao;
import com.wutianyi.module.services.PropertyGroupServices;

public class PropertyGroupServicesImpl implements PropertyGroupServices {

	private PropertyGroupDao propertyGroupDao;
	public PropertyGroupDao getPropertyGroupDao() {
		return propertyGroupDao;
	}

	public void setPropertyGroupDao(PropertyGroupDao propertyGroupDao) {
		this.propertyGroupDao = propertyGroupDao;
	}

	public ItemDao getItemDao() {
		return itemDao;
	}

	public void setItemDao(ItemDao itemDao) {
		this.itemDao = itemDao;
	}

	private ItemDao itemDao;

	@Override
	public void insertPropertyGroup(PropertyGroup pg) {
		propertyGroupDao.insertPropertyGroup(pg);
		itemDao.insertItems(pg.getItems(), pg.getId());
	}

	@Override
	public void savenPropertyGroup(PropertyGroup pg) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<PropertyGroup> listPropertyGroupsByPId(String parentId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void insertPropertyGroups(List<PropertyGroup> propertyGroups) {
		// TODO Auto-generated method stub

	}

}
